package demo;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.SimpleTimeZone;

/**
 * 日期操作
 *
 * @author liuteng
 * @version V1.0 2016-07-08
 * @createDate 2016-07-08 16:32:40
 * @modifyDate
 */
public class DateUtils {
    public static void main(String[] args) {
        System.out.println("starting");
        SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
        Calendar start = Calendar.getInstance();
        Calendar end = Calendar.getInstance();
        start.set(2014, 0, 1);
        end.set(2016, 0, 1);
        while (start.compareTo(end) < 0) {
            System.out.println("cd .>"+df.format(start.getTime())+".txt");
            start.add(Calendar.DAY_OF_MONTH,1);
        }
    }
}
